import React, { Suspense } from 'react';
import routes from './router/routerConfig'
import { useRoutes } from 'react-router-dom'
const App = () => {
  var RouterView = useRoutes(routes)
  return (
    <div>
      <Suspense fallback={<div>loading...</div >}>
        {RouterView}
      </Suspense>
    </div>
  );
}

export default App;


